/**
 * 
 */
package com.fpt.edu.vn.h2tv.api.pub;

import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import com.fpt.edu.vn.h2tv.service.FeedbackService;

/**
 * @author niteha
 *
 */
@Path("/feedback")
public class FeedbackAPI {

    @Path("/add")
	@POST
	@Produces(MediaType.APPLICATION_XML)
	public Response addFeedback(@FormParam("email")String email,
	        @FormParam("title")String title,
	        @FormParam("contents") String contents) {
		return Response.ok(FeedbackService.addFeedBack(email, title, contents), MediaType.APPLICATION_XML).build();
	}

}
